<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{:session('cp.cpsysname')}--商户管理平台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="{:config('webconfig.description');}">
    <meta name="keywords" content="{:config('webconfig.keywords');}">
    <meta name="author" content="runoob">
    <link href="__STATIC_URL__/static/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/index.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC_URL__/static/css/cardinfo.css"/>
    <script src="__STATIC_URL__/static/js/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC_URL__/static/bootstrap/3.3.7/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
    <script src="__STATIC_URL__/static/js/commen.js" type="text/javascript" charset="utf-8"></script>
    <style>
        .checkbox input[type="checkbox"], .checkbox input[type="radio"]{
            width: 18px;
            height: 18px;
            margin-top:1px;
        }
    </style>
</head>
<body id="body">
{include file='public/header'/}
<!------------------导航-------------------------->
<section>
    {include file='public/left'/}
    <!--------------------------主要内容区域------------------------------------->
    <div class="content">
        <!--路径导航-->
        <ol class="breadcrumb mgl15 mgr15">
            <li>当前位置是:</li>
            <li>
                <a href="javascript:;">会员卡</a>
            </li>
            <li class="active">付费卡</li>
        </ol>
        <!--创建会员卡主要内容-->
        <div class="card-content mgl15 mgr15 clearfix">
            <div>
                <ul class="nav nav-tabs" role="tablist" id="myTabs">
                    <li role="presentation">
                        <a href="{:url('cardus/paycardus',['card_id'=>$card['card_id']])}" >付费卡设置</a>
                    </li>
                    <li role="presentation"  class="active">
                        <a href="#messages" >付费卡购买记录</a>
                    </li>

                </ul>
                <div class="tab-content" style="padding-top: 15px;">

                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h5 class="panel-title">购买记录</h5>
                            </div>
                            <div class="panel-body">
                                <table class="table table-bordered">
                                    <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>呢称</th>
                                        <th>购买时间</th>
                                        <th>付费卡金额</th>
                                        <th>付款状态</th>
                                        <th>支付时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    {volist name="list" id="vo"}
                                    <tr>
                                        <td>{$vo['id']}</td>
                                        <td>{:get_user_nickname($vo['openid'])}</td>
                                        <td>{$vo['buytime']|date="Y-m-d",###}</td>
                                        <td>{$vo['price']}</td>
                                        <td>{eq name="vo['paystatu']" value="0"}未支付{/eq}{eq name="vo['paystatu']" value="1"}已支付{/eq}</td>
                                        <td>{$vo['paytime']|date="Y-m-d",###}</td>
                                    </tr>
                                    {/volist}
                                    </tbody>
                                </table>

                            </div>
                        </div>
                    </div>
                </div>

        </div>
        {include file='public/footer'/}
    </div>
</section>
</body>


</html>
